<!DOCTYPE html>
<html lang="en">
<head>
  <title>错误 - 乳腺癌预测</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container-fluid" style="background-color: #fff">

  {% include "footer.html" %}

  <div class="container">
    
    <div class="jumbotron" style="background-color: #ffdddd;">
      <h1>发生错误</h1>      
      <p>在处理您的请求时出现了问题：</p>
      <div class="alert alert-danger">
        {{ error }}
      </div>
      
      {% if error_details %}
      <div class="panel panel-danger">
        <div class="panel-heading">
          <h3 class="panel-title">详细错误信息</h3>
        </div>
        <div class="panel-body">
          <h4>错误类型: {{ error_details.error_type }}</h4>
          <h4>错误消息:</h4>
          <pre>{{ error_details.error_message }}</pre>
          
          <h4>错误追踪:</h4>
          <pre style="max-height: 300px; overflow-y: auto;">{{ error_details.traceback }}</pre>
        </div>
      </div>
      {% endif %}
      
      <p>
        <a href="/" class="btn btn-primary">返回首页</a>
      </p>
    </div>

    {% include "copyrights.html" %}

  </div>  

</div>

</body>
</html> 